package com.itheima.service;

import com.itheima.pojo.Dish;
import com.itheima.vo.DishVo;
import com.itheima.vo.PagingQueryVo;
import com.itheima.vo.UserDishVo;

import java.util.List;
import java.util.Set;

/**
 * @author :WuJunJie
 * packageName :com.itheima.service
 * fileName :DishService
 * creationTime :2022-11-23 13:57
 */
public interface DishService {

    public Boolean insertDish(DishVo dishVo);
    Boolean deleteDish(List<String> ids);
    Boolean updateDish(DishVo dishVo);
    Boolean changeStatus(Integer status,List<String> id);
    DishVo selectById(String id);

    UserDishVo selectByDishId(String id);

    PagingQueryVo<Dish> selectPage(String name, Integer page, Integer pageSize);

    List<DishVo> selectByCategoryId(String categoryId);

    List<UserDishVo> selectDishes(String categoryId, Integer status);

    List<UserDishVo> selectByDishIds(Set<String> dishIds);
}
